<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<script language="javascript" type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js"></script>
<script src="/ueditor/ueditor.config.js"></script>
<script src="/ueditor/ueditor.all.min.js"></script>
<script src="/ueditor/lang/zh-cn/zh-cn.js"></script>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" enctype="multipart/form-data">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所属栏目:</label>
        <div class="col-xs-12 col-sm-8" style="width:410px;">
           <span>{$res.c_title}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8" style="width:410px;">
            <input id="title" class="form-control" name="title" type="text" >
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片上传:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c_img"  name="pic" type="file">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <input  name="status"  value="0" type="radio" >待审核
            <input  name="status"  value="1" type="radio" checked="checked">正常
            <input  name="status"  value="2" type="radio">下线
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否置顶:</label>
        <div class="col-xs-12 col-sm-8">
            <input  name="istop"  value="1" type="radio" checked="checked">置顶
            <input  name="istop"  value="0" type="radio">不置顶
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">内容:</label>
        <div class="col-xs-12 col-sm-8" >
            <textarea id="info" name="info" ></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-success btn-embossed" onclick="sub();">添加</button>
            <a  href="/admin/scolumn/index_article?column_id={$column_id}&a_fid={$a_fid}" class="btn btn-default btn-embossed">返回</a>
        </div>
    </div>
</form>

<script language="JavaScript">

    function sub() {
        var title=$("#title").val();
        if(title==''){
            layer.msg("标题不得为空");
            return;
        }
        $("#add-form").submit();

    }




</script>

<script type="text/javascript">
    UE.getEditor('info', {
        theme:"default", //皮肤
        lang:"zh-cn", //语言
        initialFrameWidth:800,  //初始化编辑器宽度,默认800
        initialFrameHeight:320//  初始化编辑器高度
    });
</script>



